﻿package view
{
    import com.core.*;
    import com.sh.game.global.*;
    import com.sh.game.util.*;
    import control.*;
    import flash.display.*;
    import flash.events.*;
    import view.tips.*;

    public class Tips extends Object
    {
        public var newskill:SkillTipsGame;
        public var newtool:ToolTipsGame;
        public var arms:ArmTipsGame;
        public var contrastArms:ArmTipsGame;
        public var taskips:TaskTips;
        public var hdtips:Hdtips;
        public var taskctips:TaskcTips;
        private var _tips:Sprite;
        private var _moveTips:ErrorTips;
        private var _normalTips:FlashToolTip;
        private var _rankingTips:RankingTipsGame;
        private var _specialTips:SpecialTipsGame;

        public function Tips(param1:Object)
        {
            this._tips = Sprite(param1);
            this.initTips();
            var _loc_2:* = Control.create(NewTipsControl, this._tips);
            ModelProxy.addObserver("tips", _loc_2);
            return;
        }// end function

        private function initTips() : void
        {
            this._moveTips = new ErrorTips();
            var _loc_1:* = Control.create(MoveTipsControl, this._moveTips);
            ModelProxy.addObserver("movetips", _loc_1);
            ModelProxy.addObserver("movetips1", _loc_1);
            var _loc_2:* = FlashToolTip.getInstance();
            var _loc_3:* = GlobalLayer.instance.flashStage;
            _loc_3.addChild(_loc_2);
            _loc_2.followMouse = true;
            _loc_2.fixedWidth = 450;
            _loc_2.labelColor = MColor.V_NORMAL2;
            _loc_2.multiLine = true;
            this._normalTips = _loc_2;
            _loc_2.hide();
            _loc_1 = Control.create(FlashTipsControl, this._normalTips);
            ModelProxy.addObserver("tips", _loc_1);
            this._tips.addChild(this._moveTips);
            this._moveTips.x = _loc_3.stageWidth / 2;
            _loc_3.addEventListener(Event.RESIZE, this.resizeHandler);
            this.arms = new ArmTipsGame();
            this.arms.name = "armtips";
            this._tips.addChild(this.arms);
            this.contrastArms = new ArmTipsGame();
            this.contrastArms.name = "contrastArmtips";
            this._tips.addChild(this.contrastArms);
            this.newskill = new SkillTipsGame();
            this.newskill.name = "skilltips";
            this._tips.addChild(this.newskill);
            this.newtool = new ToolTipsGame();
            this.newtool.name = "tooltips";
            this._tips.addChild(this.newtool);
            this.taskips = new TaskTips();
            this.taskips.name = "tasktips";
            this.taskips.followMouse = true;
            this._tips.addChild(this.taskips);
            this.hdtips = new Hdtips();
            this.hdtips.name = "hdtips";
            this._tips.addChild(this.hdtips);
            this._specialTips = new SpecialTipsGame();
            this._specialTips.name = "specialTips";
            this._tips.addChild(this._specialTips);
            this.taskctips = new TaskcTips();
            this.taskctips.name = "taskctips";
            this._tips.addChild(this.taskctips);
            this._rankingTips = new RankingTipsGame();
            this._rankingTips.name = "rankingTips";
            this._tips.addChild(this._rankingTips);
            return;
        }// end function

        protected function resizeHandler(event:Event) : void
        {
            var _loc_2:* = GlobalLayer.instance.flashStage;
            if (_loc_2)
            {
                this._moveTips.x = _loc_2.stageWidth / 2;
            }
            return;
        }// end function

        public function showRanking(param1:Bitmap) : void
        {
            this._rankingTips.showImage(param1);
            return;
        }// end function

        public function showRing(param1:Bitmap) : void
        {
            return;
        }// end function

        public function showTips(param1:Bitmap, param2:Bitmap, param3:Bitmap, param4:Bitmap) : void
        {
            this.taskips.showImage(param1, param2, param3);
            return;
        }// end function

        public function showTypes(param1:Bitmap, param2:Bitmap, param3:Bitmap, param4:Bitmap) : void
        {
            return;
        }// end function

        public function showNumberBmps(param1:Array) : void
        {
            return;
        }// end function

        public function showQhadd(param1:Bitmap) : void
        {
            return;
        }// end function

    }
}
